package com.lagou.sharding.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @program: sharding-work
 * @author: GYL
 * @create: 2021-04-14 15:17
 * @description:
 */
@Data
@Entity
@Table(name = "c_order",
        indexes = {@Index(name = "idx_userId_positionId", columnList = "user_id,position_id"),
                @Index(name = "idx_userId_operateTime", columnList = "user_id,update_time")} )
public class COrder implements Serializable {

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private long id;

    @Column(name = "is_del")
    private Boolean isDel;

    @Column(name = "user_id")
    private Integer userId;

    @Column(name = "company_id")
    private Integer companyId;

    @Column(name = "publish_user_id")
    private Integer publishUserId;

    @Column(name = "position_id")
    private long positionId;
    //简历类型： 0附件 1在线
    @Column(name = "resume_type")
    private Integer resumeType;
    //    投递状态 投递状态
    //    WAIT-待处理 AUTO_FILTER-⾃动过滤 PREPARE_CONTACT-待沟通 REFUSE-拒绝
    //    ARRANGE_INTERVIEW-通知⾯试
    @Column(name = "status")
    private String status;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "`update_time`")
    private Date updateTime;
}
